<h1>Manage Text Links</h1>
	<p>
	
	<table class="greentable">
    <thead>
    <tr>
		<th>#</th>
		<th>Name</th>
		<th>Text</th>
		<th>Clicks</th>
		<th>Impressions</th>
	    <th>&nbsp;</th>
    </tr>
    </thead>
    <tbody>
	<?php 
			foreach($links as $link){ 
	?>
	<tr>
        <td><a name="<?php echo $link->id; ?>"></a><?php echo $link->id; ?></td>
        <td><?php echo $link->name; ?></td>
        <td><?php echo $link->text; ?></td>
        <td><?php echo ($link->clicks?$link->clicks:'N/A'); ?></td>
        <td><?php echo ($link->impressions?$link->impressions:'N/A'); ?></td>
		<td class="actions">
			<a class="edit" title="Edit" href="<?=$base_url?>admin/edit_text_link/id/<?php echo $link->id; ?>">edit</a> 
			<a class="del" title="Delete" href="javascript:void(0);" onclick="GolderMarkets.AdminMgt.deleteTextLink('<?=$link->id?>');">delete</a>
		</td>
	</tr>
	<?php 	} ?>
	<?php
			if($links->result_count()==0)
			{
	?>
	<tr><td colspan="9">No links found.</td></tr>
	<?php
			}
	?>
	</table>
	
	</p>
	<script src="<?php echo $base_url; ?>js/validation.js"></script>
	<script src="<?php echo $base_url; ?>js/admin_mgt.js"></script>
